package com.ssm.service;

import com.ssm.entity.User;
import com.ssm.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
@Slf4j
public class UserServiceImpl implements IUserService {

    @Resource
    UserMapper userMapper;

    @Override
    public List<User> getUsers() {

        return userMapper.list();
    }

    public static void main(String[] args) {
        System.out.println("RMI TCP Connection(2)-127.0.0.1".length());
    }
}
